package com.tantan.model;

/**
 * 自定义成员方法实现考题类的封装
 */
public class ExaminationQuestions implements java.io.Serializable {

    private static final long serialVersionUID = -2450510625725958019L;
    //自定义成员变量记录考题的编号
    private int serialNumber;
    //自定义成员变量记录考题的内容
    private String  exam;
    //自定义成员变量记录考题的答案
    private String answer;


    public ExaminationQuestions(int serialNumber,String exam,String answer) {
        this.serialNumber = serialNumber;
        this.exam = exam;
        this.answer = answer;
    }

    public String getExam() {
        return exam;
    }

    public void setExam(String exam) {
        this.exam = exam;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(int serialNumber) {
        this.serialNumber = serialNumber;
    }

    @Override
    public String toString() {
        return "ExaminationQuestions{" +
                "exam='" + exam + '\'' +
                ", answer='" + answer + '\'' +
                '}';
    }
}
